# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-xml-stream
pkgver=1.24
pkgrel=9
pkgdesc="Perl/CPAN Module XML::Stream : Module for handling XML Streams"
arch=(any)
url="https://search.cpan.org/dist/XML-Stream"
license=("GPL" "PerlArtistic")
makedepends=("perl-authen-sasl")
depends=("perl-authen-sasl")
source=("https://search.cpan.org/CPAN/authors/id/D/DA/DAPATRICK/XML-Stream-$pkgver.tar.gz")
sha256sums=('bce5c4f4dddf3cb6e94903bcbcfece3a8650521309c0cc4019aed83287d91d5c')

build() {
  cd "$srcdir"/XML-Stream-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/XML-Stream-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
